package com.example.paopao.passport.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("tb_user")
public class User implements Serializable {

    /*数据id*/
    @TableId(type = IdType.AUTO)
    private Long id;

    /*权限*/
    private Long limit;

    /*用户名*/
    private String username;

    /*密码*/
    private String password;

    /*头像*/
    private String imgUrl;

    /*电话号码*/
    private String phone;

    /*性别*/
    private Boolean gender;

    /*年龄*/
    private Integer age;

    /*籍贯*/
    private String nativE;

    /*民族*/
    private String natioc;

    /*工龄*/
    private Integer seniority;

    /*启用状态*/
    private Boolean isStart;

    /*创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /*登录时间*/
    private LocalDateTime login;

    /*数据最后修改时间*/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
